<?php
/*
 * This file is part of the Administrator/xiaoweiyuanwuye.
 *
 * (c) Administrator <Administrator@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace app\admin\controller\dingtalk;


use app\common\controller\Backend;
use app\common\model\DingtalkAttendance;
use ChenDingtalk\DingtalkManager;


/**
 * 考勤管理
 * Class Attendance
 * @package app\admin\controller\dingding
 */
class Attendance extends Backend
{
    /**
     * @var DingtalkManager
     */
    protected $dingtalk;

    protected $model;

    public function _initialize()
    {
        parent::_initialize();
        $this->dingtalk = new DingtalkManager(config('dingtalk'));
        $this->model = new DingtalkAttendance();
    }

}